package com.zhouheng.mongodb.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * 预测评分
 *
 * @author LeoRmAo
 * @date 20190820 10:47:22
 * @since v1.0
 */
@Data
@Document(collection = "FORECAST_SCORE")
public class ForecastScore {

    /**
     * id 唯一标识
     */
    @Id
    private String id;

    /**
     * scoreList 评分数据集合
     */
    private List<ForecastScoreDetail> scoreList;

    /**
     * timeTag 评分时段的tag
     */
    private String timeTag;

    /**
     * timeFlag 逐月还是逐日资料的
     */
    private boolean timeFlag;

    /**
     * stationAreaId 站点区域id
     */
    private String stationAreaId;

    /**
     * elementType 要素类型
     */
    private String elementType;

    /**
     * 描述该构造方法实现的功能
     *
     * @author LeoRmAo
     * @date 20190820 10:47:22
     * @since v1.0
     */
    public ForecastScore() {
    }

    /**
     * 描述该构造方法实现的功能
     *
     * @param scoreList 描述此参数
     * @param timeTag   描述此参数
     * @author LeoRmAo
     * @date 20190820 10:47:22
     * @since v1.0
     */
    public ForecastScore(List<ForecastScoreDetail> scoreList, String timeTag) {
        this.scoreList = scoreList;
        this.timeTag = timeTag;
    }
}
